is this a binary search tree hackerrank solution

visit shbcf.ru